//
//  UIImage+Utilities.h
//  CBSystem
//
//  Created by Yuan Ryan on 12-7-30.
//  Copyright (c) 2012年 Yulong. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIImage (Utilities)
/*
    maxSize:获取图片的最大尺寸
    actualSize:图片的实际尺寸
    返回：同比缩小的尺寸，如果图片的整体都小雨最大尺寸，返回图片实际尺寸，如果大于，则同比缩小
 
 */
+ (CGSize)equalScaleSizeForMaxSize:(CGSize)maxSize actualSize:(CGSize)actualSize;

/*
 
 A UIImage has a property imageOrientation, which instructs the UIImageView and other UIImage consumers to rotate the raw image data. There's a good chance that this flag is being saved to the exif data in the uploaded jpeg image, but the program you use to view it is not honoring that flag.
 
 */
- (UIImage *)fixOrientation;
@end
